>> a = "Hemant Kumar"
=> "Hemant Kumar"
>> a.at(4)
=> "n"
>> a.from(4)
=> "nt Kumar"
>> a.first(4)
=> "Hema"
>> a.last(4)
=> "umar"
>> a = "2007/01/01 9:11:25PM"
=> "2007/01/01 9:11:25PM"
>> a.to_time
=> Mon Jan 01 21:11:25 UTC 2007
>> a.to_date
=> #<Date: 4908203/2,0,2299161>
>> a = "camels"
=> "camels"
>> a.pluralize
=> "camels"
>> a = "user_comments"
=> "user_comments"
>> a.camelize
=> "UserComments"
>> "UserComments".underscore
=> "user_comments"
>> "user_comments".dasherize
=> "user-comments"
>> "UserComments".demodulize
=> "UserComments"
>> "UserComments".tableize
=> "user_comments"
>> "UserComments".classify
=> "UserComment"
>> "UserComments".humanize
=> "Usercomments"
>> "UserComments".foreign_key
=> "user_comments_id"
>> "User".constantize
=> User
>> "user_comments".each_char {|char| print char}
=> nil
>> "640 <lol>".starts_with? 640
=> true
>> "640 <lol>".ends_with? "lol>"
=> true
>> "अ".is_utf8?
=> true
>> class Foobar
>>   cattr_reader :name
>>   def foo
>>     p "#{@name}"
>>   end
>> end
=> nil
>> foo = Foobar
=> Foobar
>> foo.name = "Hemant"
"NoMethodError: undefined method `name=' for Foobar:Class
  from (irb):45"
>> foo.name
=> nil
>> class << foo
>>   cattr_accessor :age
>> end
=> [:age]
>> foo.age = 10
=> 10
>> foo.age
=> 10
>> foo.class_variables
=> ["@@name"]
>> foo.instance_variables
=> ["@inheritable_attributes"]
>> class Blah
>>   class_inheritable_writer :age
>> end
=> [:age]
>> class Bleh < Blah
>> end
TypeError: superclass mismatch for class Bleh
  from (irb):80
>> class Beam
>> end
=> nil
>> class Blem
>> end
=> nil
>> " ".blank?
=> true
>> "       ".blank?
=> true
>> a = nil
=> nil
>> a.blank?
=> true
>> a = []
=> []
>> a.blank?
=> true
>> a = {}
=> {}
>> a.blank?
=> true
>> a = User.find(:all,:select => "id,login")
=> [#<User:0xb6f84128 ]
>> a.class
=> Array
>> a.index_by(&:id)
=> {71=>#<User:0xb6f84024>}
>> a.index_by(&:id).hash
=> -612671648
>> c = a.index_by(&:id)
=> {71=>#<User:0xb6f84024 @attributes={"id"=>"71"}}
>> c.class
=> Hash
>> a = [1,2,3,4]
=> [1, 2, 3, 4]
>> a.sum
=> 10
>> a = {:name => "Hemant Kumar",:age => 10}
=> {:name=>"Hemant Kumar", :age=>10}
>> a.to_xml
=> "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<hash>\n  <name>Hemant Kumar</name>\n  <age type=\"integer\">10</age>\n</hash>\n"
>> b = "<person><name>Hemant</name><age>10</age></persone>"
=> "<person><name>Hemant</name><age>10</age></persone>"
>> b = "<person><name>Hemant</name><age>10</age></person>"
=> "<person><name>Hemant</name><age>10</age></person>"
>> Hash.from_xml b
=> {"person"=>{"name"=>"Hemant", "age"=>"10"}}
>> c = Hash.from_xml b
=> {"person"=>{"name"=>"Hemant", "age"=>"10"}}
>> a
=> {:name=>"Hemant Kumar", :age=>10}
>> a.diff c
=> {:name=>"Hemant Kumar", :age=>10, "person"=>{"name"=>"Hemant", "age"=>"10"}}
>> a.stringify_keys
=> {"name"=>"Hemant Kumar", "age"=>10}
>> d = a.diff c
=> {:name=>"Hemant Kumar", :age=>10, "person"=>{"name"=>"Hemant", "age"=>"10"}}
>> d.symbolize_keys
=> {:name=>"Hemant Kumar", :person=>{"name"=>"Hemant", "age"=>"10"}, :age=>10}
>> a.reverse_merge c
=> {:name=>"Hemant Kumar", :age=>10, "person"=>{"name"=>"Hemant", "age"=>"10"}}
>> a = 23
=> 23
>> a.even?
=> false
>> a.odd?
=> true
>> a.multiple_of 23
"NoMethodError: undefined method `multiple_of' for 23:Fixnum
  from (irb):123"
>> a.multiple_of? 23
=> true
>> 1.ordinalize
=> "1st"
>> module Fleh
>> mattr_writer :age
>> end
=> [:age]
>> Fleh.age = 10
=> 10
>>
